﻿using System.Web;
using Web.App.Infrastructure.Context.Contracts;

namespace Web.App.Infrastructure.Context.Implementation
{
    public class HttpSessionState : ICustomSessionState
    {
        #region ISchadenFixSessionState Members

        public object this[string name]
        {
            get
            {
                return HttpContext.Current.Session[name];
            }
            set
            {
                HttpContext.Current.Session[name] = value;
            }
        }

        public object this[int index]
        {
            get
            {
                return HttpContext.Current.Session[index];
            }
            set
            {
                HttpContext.Current.Session[index] = value;
            }
        }

        #endregion
    }
}